package top.shen33.yang.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallProduct extends Model<MmallProduct> {

private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
    /**
     * 分类id,对应mmall_category表的主键
     */
        private Integer categoryId;
        private Integer activityId;
    /**
     * 商品名称
     */
        private String name;
    /**
     * 商品副标题
     */
        private String subtitle;
    /**
     * 产品主图,url相对地址
     */
        private String mainImage;
    /**
     * 图片地址,json格式,扩展用
     */
        private String subImages;
    /**
     * 商品详情
     */
        private String detail;
    /**
     * 价格,单位-元保留两位小数
     */
        private BigDecimal price;
    /**
     * 库存数量
     */
        private Integer stock;
    /**
     * 商品状态.1-在售 2-下架 3-删除
     */
        private Integer status;
    /**
     * 创建时间
     */
        private Date createTime;
    /**
     * 更新时间
     */
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getCategoryId() {
            return categoryId;
            }

        public void setCategoryId(Integer categoryId) {
            this.categoryId = categoryId;
            }

    public Integer getActivityId() {
            return activityId;
            }

        public void setActivityId(Integer activityId) {
            this.activityId = activityId;
            }

    public String getName() {
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public String getSubtitle() {
            return subtitle;
            }

        public void setSubtitle(String subtitle) {
            this.subtitle = subtitle;
            }

    public String getMainImage() {
            return mainImage;
            }

        public void setMainImage(String mainImage) {
            this.mainImage = mainImage;
            }

    public String getSubImages() {
            return subImages;
            }

        public void setSubImages(String subImages) {
            this.subImages = subImages;
            }

    public String getDetail() {
            return detail;
            }

        public void setDetail(String detail) {
            this.detail = detail;
            }

    public BigDecimal getPrice() {
            return price;
            }

        public void setPrice(BigDecimal price) {
            this.price = price;
            }

    public Integer getStock() {
            return stock;
            }

        public void setStock(Integer stock) {
            this.stock = stock;
            }

    public Integer getStatus() {
            return status;
            }

        public void setStatus(Integer status) {
            this.status = status;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallProduct{" +
                ", id=" + id +
                ", categoryId=" + categoryId +
                ", activityId=" + activityId +
                ", name=" + name +
                ", subtitle=" + subtitle +
                ", mainImage=" + mainImage +
                ", subImages=" + subImages +
                ", detail=" + detail +
                ", price=" + price +
                ", stock=" + stock +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
